<% define_content :link do -%>
  <%= polymorphic_url([asset.assignment.context, asset.assignment]) %>
<% end -%>
<%= t :tweet, "Canvas Alert - Graded: %{assignment}, %{context}", :assignment => asset.assignment.title, :context => asset.assignment.context.name %>

<%= datetime_string(force_zone(asset.graded_at)) rescue t(:no_date_set, "No Date Set") %>

<% if asset.score && user.try(:send_scores_in_emails?, asset.assignment.context.root_account) %>
  <%= t :score, "score:  %{score} out of %{total}", :score => asset.score, :total => (asset.assignment.points_possible || t(:not_applicable, "N/A")) %>
<% end %><%= t(:score_pending_review, "(pending review)") if asset.pending_review? %>